﻿using System.Security.Cryptography;
using System.Text;

namespace UserData.Utils
{
    public class HashUtils
    {
        public static string Md5(string input)
        {
            var bytes = Encoding.UTF8.GetBytes(input);
            var hashed = MD5.HashData(bytes);
            var result = Convert.ToHexString(hashed);
            return result;
        }
    }
}
